package com.xunqi.ad.form;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @Description:
 * @Created with IntelliJ IDEA.
 * @author: 夏沫止水
 * @createTime: 2020-04-30 15:14
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class AdUnitForm {

    @NotNull(message = "推广计划id不能为空")
    private Long planId;

    @NotEmpty(message = "推广单元名称不能为空")
    private String unitName;

    @NotNull(message = "广告位类型不能为空")
    private Integer positionType;

    @NotNull(message = "预算不能为空")
    private Long budget;

}
